import request from '@/plugin/axios'
import util from '@/libs/util.js'

export default {

	list (data) {
		return request({
			url: 'mchInfo/list',
			headers: {},
			method: 'post',
			data,
		});
	},

	add (data) {
		return request({
			url: 'mchInfo/add',
			headers: {},
			method: 'post',
			data,
		});
	},

	set (data) {
		return request({
			url: 'mchInfo/edit',
			headers: {},
			method: 'post',
			data,
		});
	},

	info (data) {
		return request({
			url: 'mchInfo/get',
			headers: {},
			method: 'post',
			data,
		});
	},

	del (data) {
		return request({
			url: 'mchInfo/del',
			headers: {},
			method: 'post',
			data,
		});
	},

	option (data) {
		return request({
			url: 'mchInfo/option',
			headers: {},
			method: 'post',
			data,
		});
	},

	exportExcel (data) {
		return request({
			url: 'mchInfo/exportexcel',
			headers: {},
			method: 'post',
			data,
		});
	},

	getmchConfig(data){
		return request({
			url: 'mchInfo/getConfig',
			headers: {},
			method: 'post',
			data,
		});
	},

	setmchConfig(data){
		return request({
			url: 'mchInfo/editConfig',
			headers: {},
			method: 'post',
			data,
		});
	},

	pass (data) {
		return request({
			url: 'mchInfo/auth',
			headers: {},
			method: 'post',
			data,
		});
	},

	changePassword (data) {
		return request({
			url: 'mchSysAdmin/changePassword',
			headers: {},
			method: 'post',
			data,
		});
	},

	changeGoogleCode (data) {
		return request({
			url: 'mchSysAdmin/resetGoogleAuthSecret',
			headers: {},
			method: 'post',
			data,
		});
	},

	anewMch (data) {
		return request({
			url: 'mchInfo/reAuth',
			headers: {},
			method: 'post',
			data,
		});
	},

	log (data) {
		return request({
			url: 'mchInfo/log',
			headers: {},
			method: 'post',
			data,
		});
	},

	channelMchConnLogList (data) {
		return request({
			url: 'mchInfo/channelMchConnLogList',
			headers: {},
			method: 'post',
			data,
		});
	},

};